package com.deyu.action;

import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.deyu.base.BaseAction;
import com.deyu.domain.Clasz;
import com.deyu.domain.Student;
import com.deyu.util.StrUtil;
@SuppressWarnings("serial")
@Controller
@Scope("prototype")

public class ScoreAction extends BaseAction<Student>{
	String studentFields[] = {"id","loginName","userName","roles","currentTime",
		      "clasz"};//学生字段
	String claszFields[] = {"id","title"};//班级字段
	private Long[] activityIds;
    /**
     * 查询所有学生信息
     * @throws Exception
     */
	public void list() throws Exception{
		List<Student> studentList=studentService.findAll();
		StrUtil.sendJson(Student.class, studentFields, Clasz.class, claszFields, studentList);    	
    }
	/**
     * 学分管理页面
     * @throws Exception
     */
	public String scoreUI() throws Exception{
		return "scoreUI";
    }
	/**
     * 更新学生相关的活动
     * @throws Exception
     */
	public void update() throws Exception{
		//activityIds =request("name");
    }
	/**
     * 更新学生相关的活动
     * @throws Exception
     */
	public void select() throws Exception{
		
    }
}
